<%--
  Created by IntelliJ IDEA.
  User: lhr
  Date: 2022/5/18
  Time: 15:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
    <title>JSTL IF 标签</title>
</head>
<body>
    <%--if标签的使用--%>
    <c:if test="${requestScope.student ne null}">

        <c:if test="${requestScope.student.sex eq 'm'}">
            <img src="imgs/m.png"/>
        </c:if>
        <c:if test="${requestScope.student.sex eq 'f'}">
            <img src="imgs/f.png"/>
        </c:if>
    </c:if>
</body>
</html>
